﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoundSynth.Oscillators
{
    public class SineOscillator:BaseOscillator
    {
        public SineOscillator() : base() { }
        public override float GetNext(float timedomain)
        {
            return (float)Math.Sin(2f * Math.PI * timedomain);
            //return (float)Math.Sin(timedomain * 2f * Math.PI * Frequency / SampleRate);
        }
    }
}
